package com.blb.service.impl;

import com.blb.entity.Post;
import com.blb.mapper.PostMapper;
import com.blb.service.IPostService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author HuaHao
 * @since 2019-11-16
 */
@Service
public class PostServiceImpl extends ServiceImpl<PostMapper, Post> implements IPostService {

    @Resource
    private PostMapper postMapper;

    /**
     * 根据子部门id查职位
     * @param dId
     * @return
     */
    @Override
    public List<Post> getPostsByDId(String dId) {
        return postMapper.getPostsByDId(dId);
    }
}
